import type{App} from 'vue'
import { createPinia } from 'pinia'
import {storagefy} from './storagefy'
import initTables from '@/mock/initTables'
import {authRouteMode} from "@/common/config"

export default(app:App)=>{
    app.use(
        createPinia()
        .use(
        storagefy({user:1000*60*60,lang:0,routeList:'localStorage',roleList:'localStorage',userList:'localStorage',requestList:'localStorage'})
        )
        .use(authRouteMode=='local'?()=>{}:initTables)
    )
}


